#include "../atomic_include/ImageDetection.h"


int imageDetect(RequestSignal *requestSignal, DetectionResult *detectionResult)
{
    // éæºçæä¸ä¸ªæ£æµç»æ
    detectionResult->camera_id = 1;
    detectionResult->object_class = "person";
    detectionResult->confidence = 0.9;
    detectionResult->x_min = 0.1;
    detectionResult->y_min = 0.1;
    detectionResult->x_max = 0.9;
    detectionResult->y_max = 0.9;
    return ATOMIC_SERVICE_SUCCESS;
}
int statusDetect(RequestSignal *requestSignal, CameraStatus *cameraStatus)
{
    // éæºçæä¸ä¸ªç¶æ
    cameraStatus->status_code = 1;
    cameraStatus->description = "Camera is ready";
    return ATOMIC_SERVICE_SUCCESS;
}


 void imageDetect_func(RequestSignal *request, DetectionResult *reply){
 	// Function implementation TODO
     int ret_type = imageDetect(request, reply);
     reply->return_type = ret_type;
 }

 void statusDetect_func(RequestSignal *request, CameraStatus *reply){
 	// Function implementation TODO
     int ret_type = statusDetect(request, reply);
     reply->return_type = ret_type;
 }

